package admrouter

import (
	"github.com/gin-gonic/gin"
	"yundian/internel/app/handlers/pcl/admin/wifihandler"
	"yundian/internel/app/middlewares"
	"yundian/internel/pkg/dingo"
)

func InitWifiRouter() dingo.ApiRouter {
	return func(g *gin.RouterGroup) {
		{
			wifi := g.Group("wifi")
			wifi.Use(middlewares.JwtAuthMiddleware)                          // 加载中间件 - 授权需要登录
			wifi.GET("ad-service-log", wifihandler.HandleGetWifiServiceLog)  // 服务点击日志列表(单独记录)
			wifi.GET("get-cash-list", wifihandler.HandleGetWifiCashList)     // 服务点击日志列表(单独记录)
			wifi.GET("ad-income-log", wifihandler.HandleGetWifiIncomeLog)    // 收益明细列表
			wifi.GET("ad-wifi-setting", wifihandler.HandleGetWifiAdSetting)  // 每日价格列表
			wifi.POST("ad-wifi-setting", wifihandler.HandleSetWifiAdSetting) // 价格配置录入
		}
	}
}

